package logger

import (
	"io"
	"os"
	"path"

	"github.com/gin-gonic/gin"
)

func initGinLogger() {
	allWriter := GetWriteSyncer(path.Join(dir, "gin_all.log"))
	errorWriter := GetWriteSyncer(path.Join(dir, "gin_error.log"))
	gin.DefaultWriter = io.MultiWriter(allWriter, os.Stdout)
	gin.DefaultErrorWriter = io.MultiWriter(errorWriter, os.Stderr)
}
